Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add background fade to the opening and dismissing animation #30

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

chickdan
Copy link

@chickdan chickdan commented May 16, 2018

When the alertView is dismissed it fades away, then after it fades the background view is removed causing a rather jarring animation as the background suddenly disappears. With this PR the background now fades away along with the alertView for a much smoother transition.

@KevinQuisquater
Copy link

Thank you Daniel! There is another small issue with the animation, when the alert appears: the semi-transparent alert background appears all at once, rather than smoothly with the animation.
Might be interesting to add a fix to this pull request?

It's pretty trivial but just to save you time: I fixed it is by setting background's alpha to 0 when it is configured, and then set its alpha to 0.5 as part of the UIView animation inside animateForOpening().

@chickdan
Copy link
Author

A little delayed but the change is in! Thank you for the suggestion it looks a lot better now!

@chickdan chickdan changed the title Add background fade to the dismiss animation Add background fade to the opening and dismissing animation Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants